POV-Ray : Newsgroups : povray.binaries.images : iso_csg include file (11+16k) : iso_csg include file (11+16k) Server Time
16 Aug 2024 10:24:26 EDT (-0400)
  iso_csg include file (11+16k)  
From: Christoph Hormann
Date: 18 Feb 2002 10:10:42
Message: <3C711970.4BE3EB5A@gmx.de>
I made a first version of this include file in June 2001 but it was fairly
difficult to use since function names could not be passed as macro
parameters.  

The file implements basic shapes and CSG operations as well as
transformations so all CSG objects using these shapes should be possible
to convert.

Currently available shape macros are:

- IC_Plane (Direction, Distance)  
- IC_Sphere (Center, Radius)  
- IC_Box (Start, End)  
- IC_Torus (MaR, MiR)                  
- IC_Cylinder (Start, End, Radius)  
- IC_Cone (Start, Radius1, End, Radius2)

Usage is still a bit ugly, but quite self explanatory, see the sample
scenes.

The first attached picture shows a sample CSG with a deformation using
noise functions.  It is all one isosurface object so it renders fairly
slow (nearly 2 hours on a K6).  Splitting things up into several objects
is probably a good idea.  I thought about implementing some kind of
bounding, but this would probably result in serious problems because of
infinite gradients.

The second sample refers to the recent discussion in p.g. about adding a
distance function to the povray shapes internally to allow proximity
calculations.  

The include file and the sample scenes will be in p.b.s-f soon.

Christoph

-- 
POV-Ray tutorials, IsoWood include,                 
TransSkin and more: http://www.tu-bs.de/~y0013390/  
Last updated 06 Feb. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message


Attachments:
Download 'iso_csg_test02.jpg' (16 KB) Download 'iso_csg_test03.jpg' (11 KB)

Preview of image 'iso_csg_test02.jpg'
iso_csg_test02.jpg

Preview of image 'iso_csg_test03.jpg'
iso_csg_test03.jpg


 

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.